<h1>Campaigns List</h1>
<div id="sf_admin_content">
    <div class="sf_admin_list">
        <table>
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Continuous</th>
                    <th>Start date</th>
                    <th>Stop date</th>
                    <th>Template</th>
                    <th>Status</th>
                    <th>Created at</th>
                    <th>Updated at</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($campaigns as $campaign): ?>
                <tr>
                    <td><?php echo link_to($campaign, 'campaign_show', $campaign) ?>
                        <a class="stats_link" href="<?php echo url_for('campaign_stats', $campaign) ?>">stats</a>
                    </td>
                    <td><?php echo $campaign->getContinuous() ?></td>
                    <td><?php echo $campaign->getStartDate() ?></td>
                    <td><?php echo $campaign->getStopDate() ?></td>
                    <td><?php echo link_to($campaign->getTemplate(), 'template_show', $campaign->getTemplate()) ?></td>
                    <td><?php echo $campaign->getStatus() ?></td>
                    <td><?php echo $campaign->getCreatedAt() ?></td>
                    <td><?php echo $campaign->getUpdatedAt() ?></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
    <ul class="sf_admin_actions">
        <li class="sf_admin_action_new">
            <a href="<?php echo url_for('campaign/new') ?>">New</a>
        </li>
    </ul>



</div>